<?php
if(!isset($param[0]))throw new Exception('Not enough parameter');

file_put_contents('config/database.php',"<?\n\$GLOBALS['db']=new Database('".$param[0]."');\n");
echo "ok.";
